/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

/**
 * 系统监控
 */
const monitorRouter = {
  path: '/monitor',
  component: Layout,
  redirect: '/permission/page',
  alwaysShow: true,
  meta: {
    title: '系统监控',
    icon: 'lock'
  },
  name: 'Monitor',
  children: [
    {
      path: '/monitor/log/index',
      component: () => import('@/views/monitor/log/index'),
      name: 'SysLog',
      meta: {
        title: '日志管理',
        icon: 'lock'
      }
    }, {
      path: '/monitor/errorlog/index',
      component: () => import('@/views/monitor/errorlog/index'),
      name: 'SysErrorLog',
      meta: {
        title: '异常日志管理',
        icon: 'lock'
      }
    },
    {
      path: '/monitor/online/index',
      component: () => import('@/views/monitor/online/index'),
      name: 'SysOnline',
      meta: {
        title: '在线用户',
        icon: 'lock'
      }
    }
  ]
}

export default monitorRouter
